/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ihc.terminalbanco.gui.buttons;

import ihc.terminalbanco.gui.events.Events;
import java.awt.Event;
import java.awt.Font;
import java.awt.event.ActionListener;
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;

/**
 *
 * @author Rafael
 */
public class LabelButton extends JButton{

    private int row, col;
    private static Font font = new Font("Times New Roman", Font.PLAIN, 14);

    public LabelButton(String name, int row, int col){
        this.setName(name);
        this.setRow(row);
        this.setCol(col);
        this.setFont(font);
    }

    public LabelButton(String name, int row, int col, Events events){
        this(name, row, col);
        this.addActionListener(events);
    }

    public LabelButton(String name, int row, int col, boolean visible){
        this(name, row, col);
        this.setVisible(visible);
    }

     public LabelButton(String name, int row, int col, boolean visible, Events events){
        this(name, row, col, visible);
        this.addActionListener(events);
    }

    public LabelButton(String text, Icon icon) {
        super(text, icon);
    }

    public LabelButton(Action a) {
        super(a);
    }

    public LabelButton(String text) {
        super(text);
    }

    public LabelButton(Icon icon) {
        super(icon);
    }

    public LabelButton() {
    }

    public int getCol() {
        return col;
    }

    public void setCol(int col) {
        this.col = col;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public static Font getStaticFont(){
        return LabelButton.font;
    }

    public static void setStaticFont(Font newFont){
        LabelButton.font = newFont;
    }


}
